#if !defined(AFX_MYLISTCTRL_H__119A6E8B_65BF_41BB_8890_8C7D342EB693__INCLUDED_)
#define AFX_MYLISTCTRL_H__119A6E8B_65BF_41BB_8890_8C7D342EB693__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyListCtrl.h : header file
//
#include "common.h"
#include "AdvHeaderCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CMyListCtrl window

class CMyListCtrl : public CListCtrl
{
// Construction
public:
	CMyListCtrl();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyListCtrl)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMyListCtrl();

	// Generated message map functions
protected:
	CAdvHeaderCtrl m_AdvHdr;
	//{{AFX_MSG(CMyListCtrl)
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
	afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

public:
	// create columns
	void CreateColumns();

	// insert file information into list
	void InsertItems(LPFILEINFOLST pFileLst);
	// release all progress window handle
	void ReleaseItems();

	// Get all items text
	void GetAllItemText(CString& strText);

	// create list-control header
	void InitHdr();
	// resize progress in list control
	void ResizeProg();

private:
	LPFILEINFOLST		m_pFileLst;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYLISTCTRL_H__119A6E8B_65BF_41BB_8890_8C7D342EB693__INCLUDED_)
